﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _7.VariousEncodings
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            byte[] bytes;
            Encoding[] encodings = 
            { 
                Encoding.ASCII, 
                Encoding.BigEndianUnicode, 
                Encoding.Unicode, 
                Encoding.UTF32, 
                Encoding.UTF7, 
                Encoding.UTF8 
            };

            foreach (var encoding in encodings)
            {
                Console.WriteLine(encoding.ToString());
                bytes = encoding.GetBytes(input);
                //Console.WriteLine(BitConverter.ToString(bytes));
                foreach (var b in bytes)
                {
                    string stringedByte = b.ToString("X");
                    Console.Write("0x{0} ", stringedByte);
                }
                Console.WriteLine();
            }
        }
    }
}
